$().ready(function() {
	ajax("");
});

function ajax(type){
	$.ajax({
		cache : true,
		type : "GET",
		url : "/shop/Statistical/statistical",
		async : false,
		data:{type:type},
		error : function(request) {
			parent.layer.alert("Connection error");
		},
		success : function(data) {
			$("#countordermember").val(data.countordermember);
			$("#countorder").val(data.countorder);
			$("#countamount").val(data.countamount);
			$("#countsuccess").val(data.countsuccess);
			$("#paymoney").val(data.paymoney);
			
			$("#countpayordermember").val(data.countpayordermember);
			$("#countpayorder").val(data.countpayorder);
			$("#countpayamount").val(data.countpayamount);
			$("#countpaymoney").val(data.countpaymoney);
			$("#average").val(data.average);
		}
	});
}